median
Arrays Timm Mar10 Revised

Compute Median of a List of Numbers

Fund the middle of the list of numbers. Assumes the numbers are sorted.

 function median(a,n,   low) {
     low = int(n/2);
     return oddp(n) ?  a[low+1] : (a[low] + a[low+1])/2
 }

by Tim Menzies

